/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ofek
 */
public class CommunityNode {
    
    /**
     * The value of the node, represents a vertex' index
     */
    public int value;
    /**
     * The next vertex in the community, this is a linked lsit structure
     */
    public CommunityNode next;
    
    /**
     * Constructs a node with a certain value
     * @param in_value The value of the node, represents a vertex' index 
     */
    public CommunityNode(int in_value)
    {
        value = in_value;
    }
    
    /** 
     * Copy constructor that only copies the value, not the "next" field
     * @param c The node to copy (only copies the value, as mentioned)
     */
    public CommunityNode(CommunityNode c)
    {
        value = c.value;
    }
}
